package com.test.rocks.myrocks.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.test.rocks.myrocks.entity.TTenantGroupCellStatistics;
import com.test.rocks.myrocks.service.ITTenantGroupCellStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author h.y
 * @since 2025-01-22
 */
@RestController
@RequestMapping("/myrocks")
public class TTenantGroupCellStatisticsController {

    @Autowired
    private ITTenantGroupCellStatisticsService tenantGroupCellStatisticsService;

    @GetMapping("/test")
    public String test(){
        final QueryWrapper<TTenantGroupCellStatistics> queryWrapper = new QueryWrapper<TTenantGroupCellStatistics>().eq("cell_id", 966393888551993344L);
        final TTenantGroupCellStatistics one = tenantGroupCellStatisticsService.getOne(queryWrapper);
        return one.getCellId().toString();
    }

}
